package lab02.test27;

import java.util.*;

public class Test {
    public static void main(String[] args) {

        System.out.println("请从键盘输入整数：");
        Scanner sc = new Scanner(System.in);

           try {

               int a = sc.nextInt();
               System.out.println("你输入的数是：" + a);

           }catch(InputMismatchException e){

               System.out.println("你输入的数不是整数！");
           }

    }
}
